package com.szxy.aspectj.annotation;

import com.szxy.aspectj.enums.BusinessType;
import com.szxy.aspectj.enums.OperatorType;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: zwz
 * @Date:2020/11/17 20:45
 * @Description: 自定义日志注解
 **/
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {

    /*** 模块 */
    public String title() default "";

    /*** 功能 */
    public BusinessType businessType() default BusinessType.OTHER;

    /*** 操作人类别 */
    public OperatorType operatorType() default OperatorType.MANAGE;

    /*** 是否保存请求的参数 */
    public boolean isSaveRequestData() default true;

}
